<?php


namespace app\model;


use app\model\common\CommonModel;

class goodsModel extends CommonModel
{
    protected $name = 'goods';

    public function dictionary()
    {
        return $this->belongsTo(dictionaryModel::class, 'dictionary_id');
    }

    public function category()
    {
        return $this->belongsTo(categoryModel::class, 'category_id');
    }
}